package com.wsx.sky.gateway.inner.service.impl;

import com.wsx.sky.gateway.inner.dao.DeptMapper;
import com.wsx.sky.gateway.inner.model.Dept;
import com.wsx.sky.gateway.inner.service.DeptService;
import com.wsx.sky.gateway.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.gateway.inner.service.impl.DeptServiceImpl
 * @Description: TODO
 * @date 2018/12/07
 */
@Service
public class DeptServiceImpl implements DeptService {


    @Autowired
    private DeptMapper deptMapper;

    @Override
    public Dept find(int card) {
        String date = DateUtils.getNowDate();
        System.out.println(date);
        return deptMapper.get(card);
    }

    @Override
    public int save(String name) {
        return deptMapper.save(name);
    }
}
